package com.jkoss.wine.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;


/**
 * 角色
 * 
 * @Author Jason
 * @Version 1.0, 2018-11-20
 * @See
 * @Since com.jkoss.wine.system.entity
 * @Description: TODO
 */
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;
    /**
     * 父id
     */
    @TableField("pid")
    private String pid;
    /**
     * 部门id
     */
    @TableField("dmid")
    private String dmid;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 备注
     */
    @TableField("remk")
    private String remk;
    /**
     * 是否删除：0-未删除、1-已删除、2-不能删除
     */
    @TableField("del")
    private Integer del;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getDmid() {
        return dmid;
    }

    public void setDmid(String dmid) {
        this.dmid = dmid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemk() {
        return remk;
    }

    public void setRemk(String remk) {
        this.remk = remk;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Role{" +
        ", id=" + id +
        ", pid=" + pid +
        ", dmid=" + dmid +
        ", name=" + name +
        ", remk=" + remk +
        ", del=" + del +
        "}";
    }
}
